package com.lion.ball.modules.orderfood.web.model.results;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 食品选项 请求响应结果
 * Explain:
 * 
 */
@Schema(description = "食品选项 请求响应结果")
public class OfdFoodSkuOptionResult {
    @Schema(description = "主键", example = "1")
    private long id;
    @Schema(description = "编码", example = "1")
    private long code;
    @Schema(description = "食品编码", example = "1")
    private long foodCode;
    @Schema(description = "名称", example = "字符串")
    private String name;
    @Schema(description = "价格", example = "1")
    private Double price;
    @Schema(description = "创建时间", example = "1")
    private long createTime;
    @Schema(description = "更新时间", example = "1")
    private long updateTime;
    @Schema(description = "是否删除 0 - 未删除 1 - 已删除", example = "1")
    private int isDeleted;
    @Schema(description = "状态 0 - 正常 1 - 异常", example = "1")
    private int status;

    // 无参构造方法
    public OfdFoodSkuOptionResult() {
    }

    // 全参数构造方法
    public OfdFoodSkuOptionResult(long id, long code, long foodCode, String name, Double price, long createTime, long updateTime, int isDeleted, int status) {
        this.id = id;
        this.code = code;
        this.foodCode = foodCode;
        this.name = name;
        this.price = price;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.status = status;
    }

    // 全参数create生成器
    public static OfdFoodSkuOptionResult create(long id, long code, long foodCode, String name, Double price, long createTime, long updateTime, int isDeleted, int status) {
        return new OfdFoodSkuOptionResult(id, code, foodCode, name, price, createTime, updateTime, isDeleted, status);
    }

    // 全参数of生成器
    public static OfdFoodSkuOptionResult of(long id, long code, long foodCode, String name, Double price, long createTime, long updateTime, int isDeleted, int status) {
        return new OfdFoodSkuOptionResult(id, code, foodCode, name, price, createTime, updateTime, isDeleted, status);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdFoodSkuOptionResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public OfdFoodSkuOptionResult setCode(long code) {
        this.code = code;
        return this;
    }

    public long getFoodCode() {
        return foodCode;
    }

    public OfdFoodSkuOptionResult setFoodCode(long foodCode) {
        this.foodCode = foodCode;
        return this;
    }

    public String getName() {
        return name;
    }

    public OfdFoodSkuOptionResult setName(String name) {
        this.name = name;
        return this;
    }

    public Double getPrice() {
        return price;
    }

    public OfdFoodSkuOptionResult setPrice(Double price) {
        this.price = price;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdFoodSkuOptionResult setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdFoodSkuOptionResult setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdFoodSkuOptionResult setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public OfdFoodSkuOptionResult setStatus(int status) {
        this.status = status;
        return this;
    }

    // endregion Getter和Setter方法
}
